package com.lengxf.design;

public class Client {


    public static void main(String[] args) {
        EmployeeList list = new EmployeeList();
        Employee e1 = new FullTimeEmployee("张无忌", 3200.00, 45);
        Employee e2 = new FullTimeEmployee("杨过", 2000.00, 40);
        Employee e3 = new FullTimeEmployee("段誉", 24000.00, 38);

        Employee e4 = new PartTimeEmployee("洪七公", 80.00, 20);
        Employee e5 = new PartTimeEmployee("郭靖", 60.00, 18);

        list.addEmployee(e1);
        list.addEmployee(e2);
        list.addEmployee(e3);
        list.addEmployee(e4);
        list.addEmployee(e5);

        list.accept(new FADepartment());
    }
}
